package top.lshaci.learning.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * EasyExcelModel
 *
 * @author lshaci
 * @since 1.0.0
 */
@Data
public class EasyExcelModel {

    @ColumnWidth(12)
    @ExcelProperty("字符串")
    private String string;

    @ExcelProperty("整数")
    private Integer integer;

    @ColumnWidth(22)
    @ExcelProperty(value = "JAVA8时间", converter = LocalDateTimeConverter.class)
    private LocalDateTime localDateTime;
}
